import java.util.ArrayList;
import java.util.Scanner;

public class day230505 {
    // 年会抽奖
    // 用 long 类型， 不然会溢出
    private static long func(int n) {
        if (n == 1) {
            return 0;
        } else if (n == 2) {
            return 1;
        }
        return (n - 1) * (func(n - 1) + func(n - 2));
    }
    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int n = sc.nextInt();
            long count = 1;
            for (int i = 2; i <= n; i++) {
                count *= i;
            }
            double result = (double)func(n)/count * 100;
            // 格式化输出
            System.out.printf("%2.2f%%\n", result);
        }
    }

    // 抄送列表
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String str = sc.nextLine();
            String user = sc.nextLine();
            ArrayList<String> userList = new ArrayList<>();
            boolean flag = false;
            for (int i = 0; i < str.length();) {
                StringBuilder sb = new StringBuilder();
                while (i < str.length()) {
                    if (str.charAt(i) == ',' && !flag) {
                        i++;
                        break;
                    } else if (str.charAt(i) == '"') {
                        flag = !flag;
                    } else {
                        sb.append(str.charAt(i));
                    }
                    i++;
                }
                userList.add(sb.toString());
            }

            if (userList.contains(user)) {
                System.out.println("Ignore");
            } else {
                System.out.println("Important!");
            }
        }
    }
}
